package com.itxuhang.adapter;

import com.itxuhang.model.ModelAndView;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface HandlerAdapter {

    /**
     * 适配处理器
     * @param handler
     * @return
     */
    boolean supports(Object handler);

    ModelAndView handleRequest(Object handler,HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException;
}
